package com.ruoyi.project.yuwen.kkuserInfo.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Date;

/**
 * 用户信息(按kkuid分区)对象 kkuserInfo
 *
 * @author shixiangwen
 * @date 2021-03-24
 */
public class YuwenKkuserInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 用户ID(分区,尽量用kkuid查询,而非其他字段)
     */
    private Long kkuid;

    /**
     * 绑定手机号(手机号唯一,如果索引唯一,必须加入主键,才能保证kkuid得以分区)
     */
    @Excel(name = "绑定手机号(手机号唯一,如果索引唯一,必须加入主键,才能保证kkuid得以分区)")
    private Long phone;

    /**
     * 密码
     */
    @Excel(name = "密码")
    private String passwd;

    /**
     * 用户名
     */
    @Excel(name = "用户名")
    private String uname;

    /**
     * 学校
     */
    @Excel(name = "学校")
    private String school;

    /**
     * 性别
     */
    @Excel(name = "性别")
    private String gender;

    /**
     * 班级
     */
    @Excel(name = "班级")
    private String uclass;

    /**
     * 城市
     */
    @Excel(name = "城市")
    private String city;

    /**
     * 出生年月
     */
    @Excel(name = "出生年月", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birth;

    /**
     * 年级
     */
    @Excel(name = "年级")
    private String grade;

    /**
     * 注册时间
     */
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date registertime;

    /**
     * 信息状态(1公开,2保密,保留字段)
     */
    @Excel(name = "信息状态(1公开,2保密,保留字段)")
    private Integer ustatus;

    /**
     * 头像地址
     */
    @Excel(name = "头像地址")
    private String thumb;

    /**
     * major
     */
    @Excel(name = "major")
    private String major;

    /**
     * minor
     */
    @Excel(name = "minor")
    private String minor;

    /**
     * 音频审核权限
     */
    @Excel(name = "音频审核权限")
    private Integer auditPermission;

    private Integer topmanLevel;

    public Integer getTopmanLevel() {
        return topmanLevel;
    }

    public void setTopmanLevel(Integer topmanLevel) {
        this.topmanLevel = topmanLevel;
    }

    /**
     * 权限过期时间
     */
    @Excel(name = "权限过期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date auditPermissionExpired;

    public void setKkuid(Long kkuid) {
        this.kkuid = kkuid;
    }

    public Long getKkuid() {
        return kkuid;
    }

    public void setPhone(Long phone) {
        this.phone = phone;
    }

    public Long getPhone() {
        return phone;
    }

    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }

    public String getPasswd() {
        return passwd;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getUname() {
        return uname;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getSchool() {
        return school;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getGender() {
        return gender;
    }

    public void setUclass(String uclass) {
        this.uclass = uclass;
    }

    public String getUclass() {
        return uclass;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCity() {
        return city;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    public Date getBirth() {
        return birth;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getGrade() {
        return grade;
    }

    public void setRegistertime(Date registertime) {
        this.registertime = registertime;
    }

    public Date getRegistertime() {
        return registertime;
    }

    public void setUstatus(Integer ustatus) {
        this.ustatus = ustatus;
    }

    public Integer getUstatus() {
        return ustatus;
    }

    public void setThumb(String thumb) {
        this.thumb = thumb;
    }

    public String getThumb() {
        return thumb;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getMajor() {
        return major;
    }

    public void setMinor(String minor) {
        this.minor = minor;
    }

    public String getMinor() {
        return minor;
    }

    public void setAuditPermission(Integer auditPermission) {
        this.auditPermission = auditPermission;
    }

    public Integer getAuditPermission() {
        return auditPermission;
    }

    public void setAuditPermissionExpired(Date auditPermissionExpired) {
        this.auditPermissionExpired = auditPermissionExpired;
    }

    public Date getAuditPermissionExpired() {
        return auditPermissionExpired;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("kkuid", getKkuid())
                .append("phone", getPhone())
                .append("passwd", getPasswd())
                .append("uname", getUname())
                .append("school", getSchool())
                .append("gender", getGender())
                .append("uclass", getUclass())
                .append("city", getCity())
                .append("birth", getBirth())
                .append("grade", getGrade())
                .append("registertime", getRegistertime())
                .append("ustatus", getUstatus())
                .append("thumb", getThumb())
                .append("major", getMajor())
                .append("minor", getMinor())
                .append("auditPermission", getAuditPermission())
                .append("auditPermissionExpired", getAuditPermissionExpired())
                .toString();
    }
}
